﻿namespace SuperMarieApi.App.Controllers.Framework.XmlConfig.Model
{
    using System;

    /// <summary>
    /// 会员配置信息
    /// </summary>
    [Serializable]
    public class userconfig
    {
        public userconfig()
        { }
        private int _regstatus = 0;
        private int _regverify = 0;
        private int _regmsgstatus = 0;
        private string _regmsgtxt = "";
        private string _regkeywords = "";
        private int _regctrl = 0;
        private int _regsmsexpired = 0;
        private int _regemailexpired = 0;
        private int _regemailditto = 0;
        private int _mobilelogin = 0;
        private int _emaillogin = 0;
        private int _regrules = 0;
        private string _regrulestxt = "";

        private int _pointcomment = 0;
        private int _pointcompleteinformation = 0;
        private int _pointconsumeproportion = 0;
        private decimal _pointcashrate = 0;
        private int _pointloginnum = 0;

        private int _issendcoupon = 1;
        private int _sendcouponamount = 10;
        private int _sendcouponday = 30;

        /// <summary>
        /// 新用户注册设置0关闭注册,1开放注册,2手机短信,3邮件链接
        /// </summary>
        public int regstatus
        {
            get { return this._regstatus; }
            set { this._regstatus = value; }
        }
        /// <summary>
        /// 新用户注册验证0无验证,1邮箱验证,2手机验证,3手机/邮箱4,人工审核
        /// </summary>
        public int regverify
        {
            get { return this._regverify; }
            set { this._regverify = value; }
        }
        /// <summary>
        /// 注册欢迎短信息0不发送1站内短消息2发送邮件3手机短信
        /// </summary>
        public int regmsgstatus
        {
            get { return this._regmsgstatus; }
            set { this._regmsgstatus = value; }
        }
        /// <summary>
        /// 欢迎短信息内容
        /// </summary>
        public string regmsgtxt
        {
            get { return this._regmsgtxt; }
            set { this._regmsgtxt = value; }
        }
        /// <summary>
        /// 用户名保留关健字
        /// </summary>
        public string regkeywords
        {
            get { return this._regkeywords; }
            set { this._regkeywords = value; }
        }
        /// <summary>
        /// IP注册间隔限制0不限制(小时)
        /// </summary>
        public int regctrl
        {
            get { return this._regctrl; }
            set { this._regctrl = value; }
        }
        /// <summary>
        /// 手机验证码有效期0不限制(分钟)
        /// </summary>
        public int regsmsexpired
        {
            get { return this._regsmsexpired; }
            set { this._regsmsexpired = value; }
        }
        /// <summary>
        /// 邮件链接有效期0不限制(天)
        /// </summary>
        public int regemailexpired
        {
            get { return this._regemailexpired; }
            set { this._regemailexpired = value; }
        }
        /// <summary>
        /// 允许同一Email注册不同用户0不允许1允许
        /// </summary>
        public int regemailditto
        {
            get { return this._regemailditto; }
            set { this._regemailditto = value; }
        }
        /// <summary>
        /// 允许手机号登录0不允许1允许
        /// </summary>
        public int mobilelogin
        {
            get { return this._mobilelogin; }
            set { this._mobilelogin = value; }
        }
        /// <summary>
        /// 允许邮箱登录0不允许1允许
        /// </summary>
        public int emaillogin
        {
            get { return this._emaillogin; }
            set { this._emaillogin = value; }
        }
        /// <summary>
        /// 注册许可协议0否1是
        /// </summary>
        public int regrules
        {
            get { return this._regrules; }
            set { this._regrules = value; }
        }
        /// <summary>
        /// 许可协议内容
        /// </summary>
        public string regrulestxt
        {
            get { return this._regrulestxt; }
            set { this._regrulestxt = value; }
        }

        /// <summary>
        /// 现金/积分兑换比例0禁用
        /// </summary>
        public decimal pointcashrate
        {
            get { return this._pointcashrate; }
            set { this._pointcashrate = value; }
        }
        /// <summary>
        /// 每天登录获得积分
        /// </summary>
        public int pointloginnum
        {
            get { return this._pointloginnum; }
            set { this._pointloginnum = value; }
        }
        /// <summary>
        /// 每做商品评价一次送积分
        /// </summary>
        public int pointcomment
        {
            get { return this._pointcomment; }
            set { this._pointcomment = value; }
        }
        /// <summary>
        /// 消费送积分比例
        /// </summary>
        public int pointconsumeproportion
        {
            get { return this._pointconsumeproportion; }
            set { this._pointconsumeproportion = value; }
        }
        /// <summary>
        /// 补全会员赠送积分
        /// </summary>
        public int pointcompleteinformation
        {
            get { return this._pointcompleteinformation; }
            set { this._pointcompleteinformation = value; }
        }

        /// <summary>
        /// 注册用户赠送优惠券(默认值1。1赠送优惠券。2不赠送优惠券)
        /// </summary>
        public int issendcoupon
        {
            get { return this._issendcoupon; }
            set { this._issendcoupon = value; }
        }
        /// <summary>
        /// 赠送优惠券金额
        /// </summary>
        public int sendcouponamount
        {
            get { return this._sendcouponamount; }
            set { this._sendcouponamount = value; }
        }
        /// <summary>
        /// 赠送优惠券时效
        /// </summary>
        public int sendcouponday
        {
            get { return this._sendcouponday; }
            set { this._sendcouponday = value; }
        }

    }
}
